![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@lit-labs/analyzer
Advanced tools
A static analyzer for Lit
This package contains static analysis utilities for analyzing source code that contain Lit templates and elements, that might be useful for other programs like linters, IDE plugins, code generators, etc.
This is a very early stage Lit Labs package and is not ready for use.
This section is incomplete
import {createPackageAnalyzer} from '@lit-labs/analyzer/package-analyzer.js';
import * as path from 'path';
const packagePath = path.resolve('./my-package');
const analyzer = createPackageAnalyzer(packagePath);
const module = analyzer.getModule(
path.resolve(packagePath, 'src/my-element.ts')
);
You must use a bundler to bundle TypeScript, such as Rollup with the CommonJS plugin.
With @rollup/plugin-commonjs
you need to ignore built-in libraries like os
, fs
, etc. You can isgnore these in your Rollup config:
rollup.config.js:
import commonjs from '@rollup/plugin-commonjs';
// ...
plugins: [
commonjs({
ignore: (id) => ['fs', 'os', 'inspector'].includes(id),
}),
],
// ...
You may need to install the 'path'
package:
npm i path
Then you can make an Analyzer using these imports:
import {Analyzer} from '@lit-labs/analyzer/lib/analyzer.js';
import {AbsolutePath} from '@lit-labs/analyzer/lib/paths.js';
import ts from 'typescript';
import * as path from 'path';
// TODO: show constructing an Analyzer in browser contexts
Please see CONTRIBUTING.md.
FAQs
A static analyzer for Lit
The npm package @lit-labs/analyzer receives a total of 1 weekly downloads. As such, @lit-labs/analyzer popularity was classified as not popular.
We found that @lit-labs/analyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.